#pragma once

class DClassEntity;

class DEntityStructure
{
public:
	static DEntityStructure& instance();
	void init(QTreeWidget* pClassView);

	DClassEntity*		baseClass();
	DClassEntity*		classByItem(QTreeWidgetItem* pItem);
	QTreeWidgetItem*	itemByClass(const DClassEntity* pClass);
private:
	DEntityStructure(void);
	~DEntityStructure(void);

	QTreeWidget*		m_pClassView;
};
